package com.example.demo.mapper;


import com.example.demo.pojo.Classes;
import com.example.demo.pojo.Course;
import com.example.demo.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {
    List<Student> queryStudent();

    int addStudent(String student_name,int student_number, String student_sex,int student_age,int  class_id);
    int updateStudent(Student student);
    int deleteStudent(int id);

    //新增学生返回学生id
    int add(Student student);

    //设置班级id
    int addClassesId(Classes classes);
}
